Repository navigation
docs: user-facing documentation under docs/ - #18
colinjlacy merged 2 commits into
Conversation
- README follows the rc-cli pattern: intro, mental model, quickstart, doc links, ecosystem, contributing, license - docs/usage.md: critical-path workflows (profile CR, correlation, adapter API) - docs/architecture.md: data flow, per-file internals, API reference, exports - docs/fulfillment-api.md: adapter contract, validation rules, storage caveat - docs/releases.md: semver and trusted publishing
aab6a7d to
b56d4be
Compare
| ### Fulfillment store | ||
|
|
||
| - File: `backend/src/router.ts` | ||
| - A plain in-memory array. `POST /fulfillments` validates and appends (returns `201`). `GET /fulfillments` filters by optional `profileName` and `condition` query params. |
There was a problem hiding this comment.
A plain in-memory array -> This makes me a sad panda. We'll have to address this in the future.
|
|
||
| - File: `backend/src/router.ts` | ||
| - A plain in-memory array. `POST /fulfillments` validates and appends (returns `201`). `GET /fulfillments` filters by optional `profileName` and `condition` query params. | ||
| - Ephemeral: a backend restart loses all fulfillments. Adapters should treat POST as "report current state" and re-post after a restart. |
There was a problem hiding this comment.
Yeah, this is why. We need a durable fulfillment store so that these can survive restarts. Otherwise this is just demoware. I'm glad your documentation effort flagged this.
colinjlacy
left a comment
There was a problem hiding this comment.
Just one change requested - please clarify the diagram at the top. Other than that, great docs. Clears up a lot about what's here and what needs to be cleaned up.
Reviewer feedback: the store read like a separate actor doing the GET. Now shows adapter as the only writer, browser as the only reader, and the in-memory store as the backend's own memory.
|
Fixed in 4262ab7: the diagram now shows the adapter as the only writer and the browser as the only reader, with the in-memory store drawn as the backend plugin's own memory rather than a separate actor. There's also a one-line prose note above the diagram saying exactly that. |
Adds end-user documentation in docs/ and links it from the README:
Docs-only change; per the repo's release rules this does not trigger an npm release.